<template>
  <view class="container">
    <view class="bgwh pd_t_30">
      <userEchart ref="echarts"/>
    </view>
  </view>
</template>
<script>
  import {request} from "../../util/api";
  import userEchart from '../../components/userEchart'

  export default {
    components: {userEchart},

    onLoad(e) {
      this.getData()
    },

    methods: {
      init() {
        this.cWidth = uni.upx2px(750);
        this.cHeight = uni.upx2px(600);
      },

      getData() {
        request({
          url: '/app/userCenter/analysisSchoolGrade'
        }).then(res => {
          this.$refs.echarts.initEcharts(res)
        })
      }
    }
  }
</script>

<style>
  page {
    display: block;
    height: 100%;
    background-color: #efeff4;
  }

</style>
